home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Resources / Online / Miami / MiamiSDK / netinclude / sys / errno.h < prev    next >
C/C++ Source or Header  |  1997-12-04  |  4KB  |  106 lines

  1. #ifndef _SYS_ERRNO_H_
  2. #define _SYS_ERRNO_H_
  3.  
  4. #define    EPERM        1        /* Operation not permitted */
  5. #define    ENOENT        2        /* No such file or directory */
  6. #define    ESRCH        3        /* No such process */
  7. #define    EINTR        4        /* Interrupted system call */
  8. #define    EIO        5        /* Input/output error */
  9. #define    ENXIO        6        /* Device not configured */
  10. #define    E2BIG        7        /* Argument list too long */
  11. #define    ENOEXEC        8        /* Exec format error */
  12. #define    EBADF        9        /* Bad file descriptor */
  13. #define    ECHILD        10        /* No child processes */
  14. #define    EDEADLK        11        /* Resource deadlock avoided */
  15. #define    ENOMEM        12        /* Cannot allocate memory */
  16. #define    EACCES        13        /* Permission denied */
  17. #define    EFAULT        14        /* Bad address */
  18. #define    ENOTBLK        15        /* Block device required */
  19. #define    EBUSY        16        /* Device busy */
  20. #define    EEXIST        17        /* File exists */
  21. #define    EXDEV        18        /* Cross-device link */
  22. #define    ENODEV        19        /* Operation not supported by device */
  23. #define    ENOTDIR        20        /* Not a directory */
  24. #define    EISDIR        21        /* Is a directory */
  25. #define    EINVAL        22        /* Invalid argument */
  26. #define    ENFILE        23        /* Too many open files in system */
  27. #define    EMFILE        24        /* Too many open files */
  28. #define    ENOTTY        25        /* Inappropriate ioctl for device */
  29. #define    ETXTBSY        26        /* Text file busy */
  30. #define    EFBIG        27        /* File too large */
  31. #define    ENOSPC        28        /* No space left on device */
  32. #define    ESPIPE        29        /* Illegal seek */
  33. #define    EROFS        30        /* Read-only file system */
  34. #define    EMLINK        31        /* Too many links */
  35. #define    EPIPE        32        /* Broken pipe */
  36.  
  37. /* math software */
  38. #define    EDOM        33        /* Numerical argument out of domain */
  39. #define    ERANGE        34        /* Result too large */
  40.  
  41. /* non-blocking and interrupt i/o */
  42. #define    EAGAIN        35        /* Resource temporarily unavailable */
  43. #define    EWOULDBLOCK    EAGAIN        /* Operation would block */
  44. #define    EINPROGRESS    36        /* Operation now in progress */
  45. #define    EALREADY    37        /* Operation already in progress */
  46.  
  47. /* ipc/network software -- argument errors */
  48. #define    ENOTSOCK    38        /* Socket operation on non-socket */
  49. #define    EDESTADDRREQ    39        /* Destination address required */
  50. #define    EMSGSIZE    40        /* Message too long */
  51. #define    EPROTOTYPE    41        /* Protocol wrong type for socket */
  52. #define    ENOPROTOOPT    42        /* Protocol not available */
  53. #define    EPROTONOSUPPORT    43        /* Protocol not supported */
  54. #define    ESOCKTNOSUPPORT    44        /* Socket type not supported */
  55. #define    EOPNOTSUPP    45        /* Operation not supported */
  56. #define    EPFNOSUPPORT    46        /* Protocol family not supported */
  57. #define    EAFNOSUPPORT    47        /* Address family not supported by protocol family */
  58. #define    EADDRINUSE    48        /* Address already in use */
  59. #define    EADDRNOTAVAIL    49        /* Can't assign requested address */
  60.  
  61. /* ipc/network software -- operational errors */
  62. #define    ENETDOWN    50        /* Network is down */
  63. #define    ENETUNREACH    51        /* Network is unreachable */
  64. #define    ENETRESET    52        /* Network dropped connection on reset */
  65. #define    ECONNABORTED    53        /* Software caused connection abort */
  66. #define    ECONNRESET    54        /* Connection reset by peer */
  67. #define    ENOBUFS        55        /* No buffer space available */
  68. #define    EISCONN        56        /* Socket is already connected */
  69. #define    ENOTCONN    57        /* Socket is not connected */
  70. #define    ESHUTDOWN    58        /* Can't send after socket shutdown */
  71. #define    ETOOMANYREFS    59        /* Too many references: can't splice */
  72. #define    ETIMEDOUT    60        /* Operation timed out */
  73. #define    ECONNREFUSED    61        /* Connection refused */
  74.  
  75. #define    ELOOP        62        /* Too many levels of symbolic links */
  76. #define    ENAMETOOLONG    63        /* File name too long */
  77.  
  78. /* should be rearranged */
  79. #define    EHOSTDOWN    64        /* Host is down */
  80. #define    EHOSTUNREACH    65        /* No route to host */
  81. #define    ENOTEMPTY    66        /* Directory not empty */
  82.  
  83. /* quotas & mush */
  84. #define    EPROCLIM    67        /* Too many processes */
  85. #define    EUSERS        68        /* Too many users */
  86. #define    EDQUOT        69        /* Disc quota exceeded */
  87.  
  88. /* Network File System */
  89. #define    ESTALE        70        /* Stale NFS file handle */
  90. #define    EREMOTE        71        /* Too many levels of remote in path */
  91. #define    EBADRPC        72        /* RPC struct is bad */
  92. #define    ERPCMISMATCH    73        /* RPC version wrong */
  93. #define    EPROGUNAVAIL    74        /* RPC prog. not avail */
  94. #define    EPROGMISMATCH    75        /* Program version wrong */
  95. #define    EPROCUNAVAIL    76        /* Bad procedure for program */
  96.  
  97. #define    ENOLCK        77        /* No locks available */
  98. #define    ENOSYS        78        /* Function not implemented */
  99.  
  100. #define    EFTYPE        79        /* Inappropriate file type or format */
  101. #define    EAUTH        80        /* Authentication error */
  102. #define    ENEEDAUTH    81        /* Need authenticator */
  103. #define    ELAST        81        /* Must be equal largest errno */
  104.  
  105. #endif
  106.